<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Postname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-postname" class="form-control" name="row[postname]" data-rule="required"  type="text" value="{$row.postname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Postcontent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-postcontent" class="form-control editor" rows="5" name="row[postcontent]" data-rule="required"  cols="50">{$row.postcontent|htmlentities}</textarea>
        </div>
    </div>

<!--    暂时注释-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Scraping_text_link')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-scraping_text_link" class="form-control" name="row[scraping_text_link]" type="text" value="{$row.scraping_text_link|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-username" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Plaza_category_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-plaza_category_id" data-rule="required" class="form-control selectpicker" name="row[plaza_category_id]">
                {foreach $categoryList as $v}
                <option value="{$v.id}" {if condition="$v.id eq $row.plaza_category_id"}selected="selected"{/if}>{$v.platename}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('View')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-view" class="form-control" name="row[view]" type="text" value="{$row.view|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Replytime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-replytime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[replytime]" type="text" value="{$row.replytime}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Appid')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-appid" class="form-control" name="row[appid]" type="number" value="{$row.appid|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Comment_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-comment_count" class="form-control" name="row[comment_count]" type="number" value="{$row.comment_count|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lock')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-lock" name="row[lock]" type="hidden" value="{$row.lock}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-lock" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.lock" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Top')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-top" name="row[top]" type="hidden" value="{$row.top}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-top" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.top" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_jing')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-is_jing" name="row[is_jing]" type="hidden" value="{$row.is_jing}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-is_jing" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.is_jing" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_audit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-is_audit" name="row[is_audit]" type="hidden" value="{$row.is_audit}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-is_audit" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.is_audit" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
           </a>
        </div>
    </div>

    <!--    会员价格-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Membership_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-membership_price" class="form-control" name="row[membership_price]" type="number" step="any" min="0" data-rule="required;range(0~)" value="{$row.membership_price|htmlentities}">
        </div>
    </div>

    <!--    会员时长-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Membership_duration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-membership_duration" class="form-control" name="row[membership_duration]" type="number" step="1" min="0" data-rule="required;digits;integer;range(0~)" value="{$row.membership_duration|htmlentities}">
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
